package com.document.controller;

import com.document.common.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/test")
@RequiredArgsConstructor
public class TestController {

    @GetMapping("/hello")
    public Result<String> hello() {
        return Result.success("Hello, Instant Messaging System!");
    }

    @GetMapping("/health")
    public Result<String> health() {
        return Result.success("Server is running...");
    }
}